package com.es.repository;

import com.es.domain.Book;

import java.util.List;

/**
 * @email: fahoud@163.com
 * @author: duzifeng
 * @date: 2023/5/31
 * @time: 18:02
 * Description:
 */

public interface BookRepository  {

    List<Book> findByTitle(String title);

    List<Book> findByAuthor(String author);

//    @Highlight(fields = {
//            @HighlightField(name = "title"),
//            @HighlightField(name = "desc")
//    })
//    @Query("{\"match\":{\":title\": \"?0\", \"desc\" : \"?0\"}}")
//    SearchHit<Book> find(String keyWord);
}
